package com.servoy.r3.plugins;

import java.io.File;
import java.io.FilenameFilter;

public class JRXMLResourceBundleFilesFilter implements FilenameFilter {

	private String resourcebundle;

	public JRXMLResourceBundleFilesFilter(String resourcebundle) {
		this.resourcebundle = resourcebundle;
	}

	public boolean accept(File dir, String name) {
		return (name.startsWith(resourcebundle) && name.endsWith("properties"));
	}

}
